package filehomework;

import java.io.File;
import java.util.Scanner;

public class test03 {
    public static void main(String[] args) {
        Scanner scanner =new Scanner(System.in);
        System.out.println("请输入目录名称：");
        File file = new File("./src/filehomework/"+scanner.nextLine());
        if(file.exists()){
            System.out.println("该目录已存在");
        }

        file.mkdirs();
        System.out.println("目录创建成功");
    }
}
